package com.njwb.config;

import com.njwb.feign.fallback.UserServiceClientFallbackFactory;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConfig {
    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }
    @Bean
    public UserServiceClientFallbackFactory userServiceClientFallbackFactory(){
        return new UserServiceClientFallbackFactory();
    }
}